package com.example.demo.mapper;

import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {

    User findByUsername(String username);

    int insert(User user);

    int update(User user);

    User findById(Long id);
    
    List<User> findAll();
    
    int deleteById(Long id);
    
    int updateStatus(Map<String, Object> params);
}